from typing import List

from fastapi import Form
from pydantic import BaseModel

headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Host": "zqb.cyol.com",
    # 'Accept-Encoding': 'gzip, deflate',
    # 'Accept-Language': 'zh-CN,zh;q=0.9',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'
}


class UpdateHtml(BaseModel):
    cid: str
    keyid: str
    html: str
    down_date: str


class ZhongGuoQingNianBaoSave2(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''


class ZhongGuoQingNianBaoSave4(BaseModel):
    rawid: str = ''
    html: str = ''
    jsondicts: dict = dict()
    downdate: str = ''


class PaperZhongGuoQingNianBaoSaveMonth(BaseModel):
    periodMonth: str = ''
    html: str = ''
    downdate: str = ''


class PaperZhongGuoQingNianBaoDown(BaseModel):
    periodDate: str = ''
    url: str = ''
    marks: List[str] = []
    encode: str = ''


class PaperZhongGuoQingNianBaoGetDay(BaseModel):
    periodMonth: str = ''
    marks: List[str] = []


class ZhongGuoQingNianBaoParse4(BaseModel):
    downdate: str = ''
    jsondicts: dict = dict()
    html: str = ''
    rawid: str = ''
    batch: str = ''


class ZhongGuoQingNianBaoParseHtmlModel(BaseModel):
    periodDate: str = ''
    html: str = ''


class PaperZhongGuoQingNianBaoParseDays(BaseModel):
    html: str = ''


class ZhongGuoQingNianBaoParse2(BaseModel):
    periodDate: str = ''
    html: str = ''


class ZhongGuoQingNianBaoParse3(BaseModel):
    periodDate: str = ''
    html: str = ''


class ZhongGuoQingNianBaoSave3(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''
    page: str = ''
    rawid_page: str = ''


class ZhongGuoQingNianBaoParseSave4(BaseModel):
    djson: dict = dict()
